Repository navigation
BENCH-481| resolves #537 | Changing timestamp to .proc.cp[] - #792
Merged
Merged
Conversation
… unit tests to check that this change did not affect the data. However some of the tests were incorrectly written so that the tests would always fail. the changes in the tests/ folder are to resolve this to allow the testing to run with no errors
jamesrut1996
approved these changes
Dec 3, 2026
jamesrut1996
left a comment
Contributor
There was a problem hiding this comment.
Why use .proc.cp instead of .z.P?
Contributor
Author
That it what .proc.cp's function does |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Issue raised in #537.
In the segmented tickerplant pubsub code, in the functions .stpps.upd.chained, .stpps.zts.def, and .stpps.zts.chained current time is defined by .z.p.
Instead of .z.p, could this be changed to use .proc.cp[]? It is causing some issues using .z.p as the definition
Fix
As suggested in the fix changed all locations which uses the timestamp
.z.pand replaced it with the.proc.cp[]Tests
Attempted to run the
tests/stp/pubsubto confirm this fix worked. With this, the actual tests designed for pubsub was not correctly configured so the Tests never ran.Fixes for tests
In the tests the
process.csvwas pointing to${TORQHOME}rather than the${TORQAPPHOME}for the passwords and where thedatabase.qwas being pointed to. This means that thediscoveryandpsprocesses couldn't initialize so none of the tests could be ran.The
pubsub.csvtests were trying to use the rdbHandle which is never mentioned anywhere within the code, and by changing this to the psHandle that was being used before these tests with the fixes above now run without any errorsFig 1: The k4unit Test Results for the pubsub.csv. All showing without error